/* Navigation and footer styles moved to separate files */

/* Kalkulator Section Styles */
.kalkulator-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 50%, rgba(26, 26, 46, 0.95) 100%);
    position: relative;
}

.kalkulator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Form Styles */
.kalkulator-section input,
.kalkulator-section select {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.3s ease;
}

.kalkulator-section input:focus,
.kalkulator-section select:focus {
    outline: none;
    border-color: var(--ff-accent);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
    background: rgba(30, 41, 59, 0.9);
}

.kalkulator-section input:hover,
.kalkulator-section select:hover {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(30, 41, 59, 0.9);
}

/* Button Styles */
#calculateBtn {
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

#calculateBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

#calculateBtn:hover::before {
    left: 100%;
}

/* Result Cards */
.kalkulator-section .bg-green-500\/10 {
    background: rgba(34, 197, 94, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.kalkulator-section .bg-blue-500\/10 {
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.kalkulator-section .bg-yellow-500\/10 {
    background: rgba(251, 191, 36, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Table Styles */
.kalkulator-section table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 0.75rem;
}

.kalkulator-section table thead tr {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.kalkulator-section table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.kalkulator-section table tbody tr:hover {
    background: rgba(30, 41, 59, 0.5);
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-animation {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1rem;
    }
    
    .social-icon {
        font-size: 1rem;
    }
    
    .btn-gaming-nav {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .nav-secondary {
        top: 64px;
    }
    
    .kalkulator-section {
        padding-top: 140px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 0.9rem;
    }
    
    .nav-gaming-bg .h-16 {
        height: 3.5rem;
    }
    
    .nav-secondary {
        top: 56px;
    }
    
    .kalkulator-section {
        padding-top: 120px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced hover effects */
.interactive-hover {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.interactive-hover:hover {
    transform: translateY(-2px);
}

/* Blur effect for main content when modal is active */
#mainContent.blur-active {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

/* Footer styles moved to css/footer.css */

/* Additional Kalkulator Specific Styles */
.kalkulator-section .grid {
    position: relative;
    z-index: 2;
}

.kalkulator-section .bg-gradient-to-br {
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Placeholder Section */
#placeholderSection {
    transition: all 0.3s ease;
}

#placeholderSection.hidden {
    opacity: 0;
    transform: scale(0.95);
}

#resultSection {
    transition: all 0.5s ease;
}

#resultSection:not(.hidden) {
    animation: fadeInUp 0.5s ease-out;
}

/* Enhanced form styling */
.kalkulator-section label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
}

/* Remove number input arrows/spinners - Global */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
}

/* Additional specific targeting */
.kalkulator-section input[type="number"],
table input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.kalkulator-section input[type="number"]::-webkit-outer-spin-button,
.kalkulator-section input[type="number"]::-webkit-inner-spin-button,
table input[type="number"]::-webkit-outer-spin-button,
table input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

/* Force hide spinners with additional CSS */
input[type="number"] {
    -webkit-appearance: textfield !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Center align kill inputs */
.kalkulator-section input[type="number"] {
    text-align: center;
}

table input[type="number"] {
    text-align: center;
}

/* Tournament Info Form Styles */
.tournament-info input[type="text"] {
    transition: all 0.3s ease;
}

.tournament-info input[type="text"]:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.tournament-info input[type="text"]:hover {
    border-color: rgba(251, 191, 36, 0.3);
}

.tournament-info label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
}

/* Alert Positioning */
.alert-container {
    position: fixed;
    top: 130px; /* Below both navigation bars */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    min-width: 300px;
    max-width: 500px;
}

.alert {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInDown 0.3s ease-out;
    margin-bottom: 10px;
}

.alert-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 1px solid #059669;
}

.alert-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: 1px solid #dc2626;
}

.alert-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: 1px solid #2563eb;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Support Modal Styles */
.modal-overlay {
    animation: fadeIn 0.3s ease-out;
}

/* Blur effect for main content when modal is active */
#mainContent.blur-active {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Reset Modal Specific Styles */
#resetModal .modal-content {
    box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.4);
    border: 2px solid rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.9) 0%, rgba(55, 65, 81, 0.9) 100%);
}

#resetModal.show .modal-content {
    transform: scale(1);
    opacity: 1;
    animation: resetModalBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes resetModalBounce {
    0% {
        transform: scale(0.3) rotate(-5deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    70% {
        transform: scale(0.9) rotate(-1deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Reset modal warning animation */
#resetModal .animate-pulse {
    animation: resetPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes resetPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.modal-content.show {
    animation: modalSlideIn 0.3s ease-out;
}

/* Modal responsive */
@media (max-width: 640px) {
    .modal-content {
        max-width: 90vw;
        margin: 0;
    }
    
    .modal-overlay {
        padding: 1.5rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 1rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Support Modal Specific Styles */
#supportModal .modal-content {
    max-height: 85vh;
    margin: 1rem auto;
    overflow-y: auto;
    min-height: 60vh;
}

#supportModal .modal-overlay {
    padding: 2rem 1.5rem;
}

/* Custom scrollbar for support modal */
#supportModal .modal-content::-webkit-scrollbar {
    width: 6px;
}

#supportModal .modal-content::-webkit-scrollbar-track {
    background: rgba(71, 85, 105, 0.3);
    border-radius: 3px;
}

#supportModal .modal-content::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.6);
    border-radius: 3px;
}

#supportModal .modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.8);
}

@media (max-width: 768px) {
    #supportModal .modal-content {
        max-height: 90vh;
        margin: 1rem auto;
        min-height: 70vh;
    }
    
    #supportModal .modal-overlay {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    #supportModal .modal-content {
        max-height: 95vh;
        margin: 0.5rem auto;
        min-height: 80vh;
    }
    
    #supportModal .modal-overlay {
        padding: 1rem 0.5rem;
    }
}

/* Tournament Calculator Styles */
.kalkulator-section {
    min-height: 100vh;
}

.kalkulator-section table {
    border-collapse: separate;
    border-spacing: 0;
}

.kalkulator-section input,
.kalkulator-section select {
    transition: all 0.3s ease;
}

.kalkulator-section input:focus,
.kalkulator-section select:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
}

.kalkulator-section input:hover,
.kalkulator-section select:hover {
    border-color: rgba(251, 191, 36, 0.5);
}

/* Results table animations */
.results-table-row {
    animation: slideInRight 0.5s ease-out forwards;
    opacity: 0;
    transform: translateX(20px);
}

.results-table-row:nth-child(1) { animation-delay: 0.1s; }
.results-table-row:nth-child(2) { animation-delay: 0.2s; }
.results-table-row:nth-child(3) { animation-delay: 0.3s; }
.results-table-row:nth-child(4) { animation-delay: 0.4s; }
.results-table-row:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Notification styles */
.notification-enter {
    transform: translateX(100%);
}

.notification-enter-active {
    transform: translateX(0);
    transition: transform 0.3s ease-out;
}

.notification-exit {
    transform: translateX(0);
}

.notification-exit-active {
    transform: translateX(100%);
    transition: transform 0.3s ease-in;
}

/* Mobile responsive for calculator */
@media (max-width: 1024px) {
    .kalkulator-section .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .kalkulator-section table {
        font-size: 0.75rem;
    }
    
    .kalkulator-section input,
    .kalkulator-section select {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .kalkulator-section th,
    .kalkulator-section td {
        padding: 0.5rem 0.25rem;
    }
}

@media (max-width: 640px) {
    .kalkulator-section .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    .kalkulator-section table {
        min-width: 600px;
    }
}

/* Gradient text effects */
.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading animation for calculate button */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Success animation for results */
@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80% {
        transform: translateY(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateY(-10px);
    }
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

/* Pulse animation for important elements */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Dropdown Menu Scrollbar */
.dropdown-scroll::-webkit-scrollbar {
    width: 6px;
}

.dropdown-scroll::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 3px;
}

.dropdown-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--ff-accent), var(--ff-accent-hover));
    border-radius: 3px;
}

.dropdown-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--ff-accent-hover), #d97706);
}

